package magic.deckbuilder.mainActivity;

import magic.deckbuilder.modifyDeck.ModifyDeckActivity;
import android.content.Context;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Toast;

public class ListDeckOnClickListener implements OnItemClickListener {
	
	Context context;
	
	
	public ListDeckOnClickListener(Context context) {
		super();
		this.context = context;
	}

	@Override
	public void onItemClick(AdapterView<?> adapter, View view, int position, long id) {
		// Launch the activity to modify the selected deck
		Toast.makeText(context, "Position : " + position + ". ID : " + id, Toast.LENGTH_SHORT).show();
		ModifyDeckActivity.lauchActivity(id, context);
		//context.startActivity(new Intent(context, ModifyDeckActivity.class));
	}

	
}
